package com.vx.dao.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.vx.vo.UserVO;

public class UserMapper implements RowMapper{

	@Override
	public Object mapRow(ResultSet rs, int num) throws SQLException {
		UserVO user=new UserVO();
		user.setId(rs.getLong("id"));
		user.setUserCode(rs.getString("userCode"));
		user.setUserName(rs.getString("userName"));
		return user;
	}

}
